export const questionnaireStructureTem = [
  /**
   * 分页、段落、单选、多选、填空、评分单选、评分多选
   */
  {
    "id": "id",
    "createUser": "创建人",
    "createTime": "创建时间",
    "updateUser": "修改人",
    "updateTime": "修改时间",
    "title": "标题",
    "typeId": "类型(心理问卷/普通问卷)",
    "status": "状态 1发布,2未发布",
    "desc": "说明",
    "resultDesc": "结果描述",
    "questDtos": [{
      "title": "题目标题",
      "titleHint": "填写提示",
      "type":"目类型,0分页,1文字标题(使用'title'字段),2普通单选, 3计分单选,4普通多选,5计分多选,6填空",
      "page": "分页页数",
      "pageSort": "分页中排序",
      "isRequired":"否必填, 1必填,0否",
      "sort": "排序,越小越靠前",
      "solutionDtos": [{
        "title": "答案标题",
        "titleValue": "答案分数",
        "sort": "排序,越小越靠前",
        "desc": "说明",
        "file": "文件"
      }]
    }]
  }
]


// 编辑功能
export const editFunctionOption = [
  /**
   * 分页、段落、单选、多选、填空、评分单选、评分多选
   */

  {
    isHover: false,
    isShowEdit: false,
    sortId: 6,
    isOpenInsertDialog: false,
    title: "分页",
    titleHint: "",
    type: 0,
    // page: "",
    // pageSort: "",
    isRequired: 1,//是否必填, 1必填,0否
    sort: "",
    solutionDtos: [{
      title: "答案标题",
      // titleValue: "",
      // sort: "",
      desc: "",
      file: ""
    }]
  },
  {
    isHover: false,
    isShowEdit: false,
    sortId: 1,
    isOpenInsertDialog: false,
    title: "段落",
    titleHint: "",
    type: 1,
    // page: "",
    // pageSort: "",
    isRequired: 1,//是否必填, 1必填,0否
    sort: "",
    solutionDtos: [{
      title: "答案标题",
      // titleValue: "",
      // sort: "",
      desc: "",
      file: ""
    }]
  },
  {
    isHover: false,
    isShowEdit: false,
    sortId: 2,
    isOpenInsertDialog: false,
    title: "单选题目",
    titleHint: "",
    type: 2,
    // page: "",
    // pageSort: "",
    isRequired: 1,//是否必填, 1必填,0否
    sort: "",
    solutionDtos: [
      {
        title: "选项1",
        // titleValue: "",
        sort: "1",
        desc: "",
        file: ""
      },
      {
        title: "选项2",
        // titleValue: "",
        sort: "2",
        desc: "",
        file: ""
      }
    ]
  },
  {
    isHover: false,
    isShowEdit: false,
    sortId: 3,
    isOpenInsertDialog: false,
    title: "计分单选题目",
    titleHint: "",
    type: 3,
    // page: "",
    // pageSort: "",
    isRequired: 1,//是否必填, 1必填,0否
    sort: "",
    solutionDtos: [
      {
        titleValDisabled: false,
        title: "选项1",
        titleValue: 0,
        sort: "1",
        desc: "",
        file: ""
      },
      {
        titleValDisabled: false,
        title: "选项2",
        titleValue: 0,
        sort: "2",
        desc: "",
        file: ""
      }
    ]
  },
  {
    isHover: false,
    isShowEdit: false,
    sortId: 4,
    isOpenInsertDialog: false,
    title: "多选题目",
    titleHint: "",
    type: 4,
    // page: "",
    // pageSort: "",
    isRequired: 1,//是否必填, 1必填,0否
    sort: "",
    solutionDtos: [
      {
        title: "选项1",
        // titleValue: "",
        sort: "1",
        desc: "",
        file: ""
      },
      {
        title: "选项2",
        // titleValue: "",
        sort: "2",
        desc: "",
        file: ""
      }
    ]
  },
  {
    isHover: false,
    isShowEdit: false,
    sortId: 5,
    isOpenInsertDialog: false,
    title: "计分多选题目",
    titleHint: "",
    type: 5,
    // page: "",
    // pageSort: "",
    isRequired: 1,//是否必填, 1必填,0否
    sort: "",
    solutionDtos: [
      {
        titleValDisabled: false,
        title: "选项1",
        titleValue: 0,
        sort: "1",
        desc: "",
        file: ""
      },
      {
        titleValDisabled: false,
        title: "选项2",
        titleValue: 0,
        sort: "2",
        desc: "",
        file: ""
      }
    ]
  },
  {
    isHover: false,
    isShowEdit: false,
    sortId: 0,
    isOpenInsertDialog: false,
    title: "填空题目",
    titleHint: "",
    type: 6,
    // page: "",
    // pageSort: "",
    isRequired: 1,//是否必填, 1必填,0否
    sort: "",
    solutionDtos: [
      {
        title: "填空标题",
        // titleValue: "",
        // sort: "",
        desc: "",
        file: ""
      }
    ]
  }
]

// 根据数据type翻译题目选项
export const typeDict = {
  0: "分页",
  1: "段落",
  2: "单选",
  3: "计分单选",
  4: "多选",
  5: "计分多选",
  6: "填空"
}
export const typeDict2 = [

 {value: 0, label: "分页"},
 {value: 1, label: "段落"},
 {value: 2, label: "单选"},
 {value: 3, label: "计分单选"},
 {value: 4, label: "多选"},
 {value: 5, label: "计分多选"},
 {value: 6, label: "填空"}

]

export const FILETYPE = {
  'image/png': 'image/png',
  'image/jpeg': 'image/jpeg',
  'image/gif': 'image/gif',
  'image/jpg': 'image/jpg'
}
